﻿using System;
using System.Collections.Generic;

namespace AppMain
{
    public class LockEvent : BaseEvent<LockData>
    {
        protected override void onProcess()
        {
            if (this.m_data.lockorUnlock == (int)Lock_UnLock.Lock)
            {
                this.Action.role.Lock(this.m_data.lockStatus);
            }
            else
            {
                this.Action.role.UnLock(this.m_data.lockStatus);
            }
        }
    }
}
